package com.dingtao.common.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class Spread {

    @JSONField(name = "descList")
    private List<DescListDTO> descList;
    @JSONField(name = "personCount")
    private int personCount;
    @JSONField(name = "profitList")
    private List<ProfitListDTO> profitList;
    @JSONField(name = "profitMoney")
    private double profitMoney;
    @JSONField(name = "scale")
    private String scale;
    @JSONField(name = "serviceCount")
    private int serviceCount;

    @NoArgsConstructor
    @Data
    public static class DescListDTO {
        @JSONField(name = "addTime")
        private List<Integer> addTime;
        @JSONField(name = "conditions")
        private int conditions;
        @JSONField(name = "id")
        private int id;
        @JSONField(name = "scale")
        private int scale;
        @JSONField(name = "updTime")
        private List<Integer>  updTime;
    }

    @NoArgsConstructor
    @Data
    public static class ProfitListDTO {
        @JSONField(name = "id")
        private int id;
        @JSONField(name = "money")
        private int money;
        @JSONField(name = "name")
        private String name;
    }
}
